package models;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import utils.DateUtil;
import net.sf.oval.constraint.DateRange;

import com.alibaba.fastjson.annotation.JSONField;

public class DrCourt {
	
	public static BigDecimal ENABLE = new BigDecimal(1);
	
	public static BigDecimal DISABLE = new BigDecimal(2);
	
    private String courtid;

    private String courtname;

    private BigDecimal status;

    private String remoteurl;

    private Date createtime;
    
    private String craeteDate;

    private String createname;
    
    private BigDecimal vadhead;

    private BigDecimal vadseg;

    private BigDecimal maxsecond;
    
    private List<DrMicrophone> microPhones;
    
    private String usedRemoteurl;
    
    private Integer microCount;

    public String getCourtid() {
        return courtid;
    }

    public void setCourtid(String courtid) {
        this.courtid = courtid == null ? null : courtid.trim();
    }

    public String getCourtname() {
        return courtname;
    }

    public void setCourtname(String courtname) {
        this.courtname = courtname == null ? null : courtname.trim();
    }

    public BigDecimal getStatus() {
        return status;
    }

    public void setStatus(BigDecimal status) {
        this.status = status;
    }

    public String getRemoteurl() {
        return remoteurl;
    }

    public void setRemoteurl(String remoteurl) {
        this.remoteurl = remoteurl == null ? null : remoteurl.trim();
    }
    
    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCreatename() {
        return createname;
    }

    public void setCreatename(String createname) {
        this.createname = createname == null ? null : createname.trim();
    }

	public List<DrMicrophone> getMicroPhones() {
		return microPhones;
	}

	public void setMicroPhones(List<DrMicrophone> microPhones) {
		this.microPhones = microPhones;
	}

	public String getCraeteDate() {
		if(createtime == null)
			return "";
		return DateUtil.fommatYMD(createtime);
	}

	public void setCraeteDate(String craeteDate) {
		this.craeteDate = craeteDate;
	}

	public BigDecimal getVadhead() {
		return vadhead;
	}

	public void setVadhead(BigDecimal vadhead) {
		this.vadhead = vadhead;
	}

	public BigDecimal getVadseg() {
		return vadseg;
	}

	public void setVadseg(BigDecimal vadseg) {
		this.vadseg = vadseg;
	}

	public BigDecimal getMaxsecond() {
		return maxsecond;
	}

	public void setMaxsecond(BigDecimal maxsecond) {
		this.maxsecond = maxsecond;
	}

	public String getUsedRemoteurl() {
		return usedRemoteurl;
	}

	public void setUsedRemoteurl(String usedRemoteurl) {
		this.usedRemoteurl = usedRemoteurl;
	}

	public Integer getMicroCount() {
		return microCount;
	}

	public void setMicroCount(Integer microCount) {
		this.microCount = microCount;
	}
    
    
}